GXCaptureOutputDevice
QuickDraw GX sends theGXCaptureOutputDevice
message to remove a device from a network or to reestablish its availability on the network. If you write drivers that communicate with network devices (other than PAP) that can be removed from the network, you can override theGXCaptureOutputDevice
message to manage the capture and release of these devices. Your override of theGXCaptureOutputDevice
message must match the following formal declaration:
OSErr MyCaptureOutputDevice (Boolean capture);
capture
- A Boolean value that is
true
if you want the device captured andfalse
if you want it released.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXCaptureOutputDevice
message when it needs to remove a printing device from the network or to return the printing device to availability on the network.The default implementation of the
GXCaptureOutputDevice
message automatically handles the capturing and restoring of PAP devices on a network. It uses a series of capture resources to control the capture process.You can override this message if you write drivers that implement communications with network devices (other than PAP) that can be removed from the network. Your override implements the capture and release of these devices.
SPECIAL CONSIDERATIONS
You never send theGXCaptureOutputDevice
message yourself.You always implement a total override of the
GXCaptureOutputDevice
message, in which you implement your own device capture and release strategy.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
Capture resources are described in the section "The Capture ('cpts') Resource" beginning on page 6-63 in the chapter "Printing Resources."
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help